//
//  ItemsTableViewCell.m
//  Dsgfds
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 胡泉. All rights reserved.
//

#import "ItemsTableViewCell.h"
#import "UIImageView+WebCache.h"
@implementation ItemsTableViewCell


- (void)passValueOfModel:(ItemsModel *)model
{
    CGFloat height = 352 * SCREEN_WIDTH / 630;
    [_backImageView sd_setImageWithURL:[NSURL URLWithString:model.cover_img]];
    _titleLabel.text = model.topic_name;
    _authorLabel.text = [NSString stringWithFormat:@"#%@  作者:%@",model.cat_name,model.author_name];
    _titleLabel.frame = CGRectMake(0, height / 2  , SCREEN_WIDTH, 30);
    _titleLabel.textColor = [UIColor whiteColor];
//    _titleLabel.font = [UIFont fontWithName:@"boldface" size:15];
    _authorLabel.textColor = [UIColor whiteColor];
//    _authorLabel.font = [UIFont fontWithName:@"boldface" size:12];
    _authorLabel.frame = CGRectMake(0, height / 2 + 30, SCREEN_WIDTH, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
